<script>
$(function(){
	$('#slides2').slides({
		preload: true,
		container: 'slides_container2',
		preloadImage: 'img/loading.gif',
		paginationClass: 'pagination',
		play: 5000,
		pause: 2500,
		hoverPause: true
	});
});
</script>

<div id="contener" _height="auto">
	<div class="left_menu">
		<?php $this->beginWidget('application.widget.site.classWidget'); ?>
		<?php $this->endWidget(); ?>
		<?php $this->beginWidget('application.widget.site.productWidget'); ?>
		<?php $this->endWidget(); ?>
		<?php $this->beginWidget('application.widget.site.faceWidget'); ?>
		<?php $this->endWidget(); ?>
	</div>
	<div class="main">
		<?php $this->beginWidget('application.widget.site.newWidget'); ?>
		<?php $this->endWidget(); ?>
		<div id="banner2">
			<div id="slides2">
				<div class="slides_container2">
				<?php
				if($rowTable){
					foreach($rowTable as $row){
				?>
					<img src="<?=Yii::app()->params['slidePath']?>/<?=$row->pic?>" width="740" height="250" alt="Slide 1">
				<?php
					}
				}
				?>
				</div>
			</div>
		</div>
		<div class="right_mainBox">
			<div class="right_mainBox_top"></div>
			<div class="mainContentBox">
				<div class="box">
					<?php
					if($rowset){
						foreach($rowset as $row){
					?>
					<div class="pd_box">
						<div class="pd_boxImages"><a href="<?=Yii::app()->createUrl('shop/detail',array('pid'=>$row->pid))?>"><img border="0" src="<?=Yii::app()->params['productPath'].'/'.$row->pic?>" width="320" height="240" /></a></div>
						<div class="pd_boxTxt">
							<?=Helper::truncate_utf8_string($row->pname,14,'')?>
							<span class="dollar">$
							<?=$row->price?>
							</span> </div>
					</div>
					<?php
						}
					}else{
					?>
					<div style="width:100%; text-align:center; font-size:16px; font-weight:bold;">目前暫無此類商品</div>
					<?php
					}
					?>
				</div>
			</div>
			<div class="right_mainBox_bottom"></div>
		</div>
	</div>
</div>
